package fhp.hlhj.giantfold.test

import android.animation.*
import android.annotation.SuppressLint
import android.graphics.Bitmap
import android.os.Handler
import android.os.Message
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import android.view.View
import android.view.animation.DecelerateInterpolator
import android.widget.ImageView
import android.widget.RelativeLayout

import com.bumptech.glide.Glide
import com.google.gson.Gson
import com.lzy.okgo.OkGo
import com.lzy.okgo.convert.StringConvert

import java.util.HashMap

import cn.sharesdk.framework.Platform
import cn.sharesdk.framework.PlatformActionListener
import cn.sharesdk.framework.ShareSDK
import cn.sharesdk.wechat.friends.Wechat
import fhp.hlhj.giantfold.R
import fhp.hlhj.giantfold.network.UrlApis
import fhp.hlhj.giantfold.network.Urls
import kotlinx.android.synthetic.main.flip_back.*
import kotlinx.android.synthetic.main.flip_dialog_item.*
import kotlinx.android.synthetic.main.flip_front.*
import rx.android.schedulers.AndroidSchedulers
import rx.functions.Action0
import rx.functions.Action1

class Main3Activity : AppCompatActivity() {


    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.flip_dialog_item)
        imgFront.setImageResource(R.mipmap.card_front_purple)
        val animaIn = AnimatorInflater.loadAnimator(this, R.animator.anim_in)
        val animaOut = AnimatorInflater.loadAnimator(this, R.animator.anim_out)
        setCameraDistance()

        flipContainer.setOnClickListener {
            animaOut.setTarget(flipFront)
            animaIn.setTarget(flipBack)
            animaOut.start()
            animaIn.start()

        }
    }

    private fun setCameraDistance() {

    }

}
